<form th:action="${formAction}"
      method="post">
    <input name="password" type="password" />

    <input th:each="param : ${hiddenParams}"
           th:name="${param.key}"
           th:value="${param.value}"
           type="hidden"
    />

    <input type="submit" value="Submit password" />
</form>